import os
from dotenv import load_dotenv

load_dotenv()

class DatabaseConfig:
    DB_HOST = os.getenv("DB_HOST", "127.0.0.1")
    DB_PORT = int(os.getenv("DB_PORT", 3306))
    DB_USER = os.getenv("DB_USER", "root")
    DB_PASSWORD = os.getenv("DB_PASSWORD", "xxxx")
    DB_NAME = os.getenv("DB_NAME", "mvc_demo")
    POOL_SIZE = int(os.getenv("DB_POOL_SIZE", 5))